package com.darly.book.model.flag;


import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;

import com.darly.book.BookController;
import com.darly.book.R;

public enum FindType {
    TOP(R.string.nb_fragment_find_top, R.drawable.ic_section_top),
    TOPIC(R.string.nb_fragment_find_topic, R.drawable.ic_section_topic),
    SORT(R.string.nb_fragment_find_sort, R.drawable.ic_section_sort);
    //    LISTEN(R.string.nb_fragment_find_listen, R.drawable.ic_section_listen);
    private String typeName;
    private int iconId;

    private FindType(@StringRes int typeNameId, @DrawableRes int iconId) {
        this.typeName = BookController.getInstance().getContext().getResources().getString(typeNameId);
        this.iconId = iconId;
    }

    public String getTypeName() {
        return typeName;
    }

    public int getIconId() {
        return iconId;
    }
}
